package com.wsoft.query.job;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author z001
 * @Date 2024/10/23 09:05
 */
@Data
public class JobBaseQuery {

    @NotBlank(message = "编码不能为空")
    @Schema(description = "编码")
    private String code;

    @NotBlank(message = "名称不能为空")
    @Schema(description = "名称")
    private String name;

    @Schema(description = "描述")
    private String description;

    @NotBlank(message = "类路径不能为空")
    @Schema(description = "类路径")
    private String classPath;

    @NotBlank(message = "cron执行表达式不能为空")
    @Schema(description = "cron执行表达式")
    private String cron;

    @Schema(description = "参数")
    private String params;
}
